import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Menu } from './menu.entity';
import { MenuService } from './menu.service';
import { MenuController } from './menu.controller';
import { MenuViewController } from './menu-view.controller';
import { MenuInitService } from './menu-init.service';
import { CasbinModule } from '../casbin/casbin.module';
import { AuthModule } from '../auth/auth.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Menu]),
    CasbinModule,
    AuthModule,
  ],
  controllers: [MenuController, MenuViewController],
  providers: [MenuService, MenuInitService],
  exports: [MenuService],
})
export class MenuModule {}